package com.lishao.soccer.service.impl;

import java.util.List;

import com.lishao.soccer.bean.entity.SmTeam;
import com.lishao.soccer.bean.entity.TmTeamOpponent;
import com.lishao.soccer.dao.SmTeamMapper;
import com.lishao.soccer.dao.TmTeamOpponentMapper;
import com.lishao.soccer.service.SmTeamService;

public class SmTeamServiceImpl implements SmTeamService {
	SmTeamMapper smTeamMapper;
	TmTeamOpponentMapper tmTeamOpponentMapper;
	public List<SmTeam> selectAllTeam() {
		List<SmTeam> teamList = smTeamMapper.selectAllTeam();
		return teamList;
	}
	
	public SmTeam selectTeamById(Long teamId){
		SmTeam smTeam = smTeamMapper.selectByPrimaryKey(teamId);
		return smTeam;
	}
	
	public List<TmTeamOpponent> selectTeamOpponent(Long teamId){
		List opponentList = tmTeamOpponentMapper.selectByTeamId(teamId);
		return opponentList;
	}
	//get set
	public SmTeamMapper getSmTeamMapper() {
		return smTeamMapper;
	}
	public void setSmTeamMapper(SmTeamMapper smTeamMapper) {
		this.smTeamMapper = smTeamMapper;
	}

	public TmTeamOpponentMapper getTmTeamOpponentMapper() {
		return tmTeamOpponentMapper;
	}

	public void setTmTeamOpponentMapper(TmTeamOpponentMapper tmTeamOpponentMapper) {
		this.tmTeamOpponentMapper = tmTeamOpponentMapper;
	}
	
}
